package com.sftz.assets.entities;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;

import com.uxuexi.core.common.util.DateTimeUtil;

@Data
@Table("t_order")
public class TOrderEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id(auto = true)
	private Integer id;

	@Column
	@Comment("订单编号")
	private String orderNum;

	@Column
	@Comment("用户Id")
	private Integer userId;

	@Column
	@Comment("金额")
	private Double amountOfMoney;

	@Column
	@Comment("订单状态")
	private Integer orderState;

	@Column
	@Comment("订单创建时间")
	private Date orderCreateTime = DateTimeUtil.nowDate();

	@Column
	@Comment("订单完成时间")
	private Date orderCompleteTime;

	@Column
	@Comment("学院id")
	private Integer collegeId;

	@Column
	@Comment("学院名称")
	private String collegeName;

	@Column
	@Comment("商品id")
	private Integer productId;

	@Column
	@Comment("商品名称")
	private String productName;

	@Column
	@Comment("订单类型")
	private Integer orderType;

}